home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: cs.utexas.edu!utnut!utinfo!news
- From: Norman Baccari <normb@gpu.utcc.utoronto.ca>
- Subject: Re: Opening Libraries "Quietly"
- X-Nntp-Posting-Host: control3.utcc.utoronto.ca
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <DM5tnz.3ur@utcc.utoronto.ca>
- Sender: news@utcc.utoronto.ca (News)
- Content-Transfer-Encoding: 7bit
- Organization: UTCC Campus Access
- References: <DLzwBH.4Eu@utcc.utoronto.ca> <4er15u$8sf@iss1.neckar-alb.de>
- Mime-Version: 1.0
- Date: Fri, 2 Feb 1996 17:52:47 GMT
- X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
-
- jochen@I_should_put_my_domain_in_etc_NNTP_INEWS_DOMAIN (Jochen Wiedmann) wrote:
- >Norman Baccari (normb@gpu.utcc.utoronto.ca) wrote:
- >
- >: From what I understand, when calling OpenLib() this causes the
- >: library thats being opened to call its own init proceedure.
- >: I want to open the library to get Ver/Rev and id_string and
- >: quietly leave without affecting anything. When I do this now
- >: some libraries do there "init thing" and will try and run
- >: themselves. Toolmanager.library will do this and so does
- >: vmm.library. In an extreme case the system will crash on the
- >: OpenLib() as it does when the amos.library opened. Is there a
- >: way to get the info I want from any disk based library,
- >: quietly & legally?
- >
- >How about examining System("C:Version Sys:MyLib.library")? (Not the
- >best idea, of course, but does what you want.) You could still do
- >a OpenLibrary(), if the above call fails.
- >
- >
- >Bye,
- >
- >Jochen
- >
- I suppose I could do this to get the version string ($VER:) but I've
- found that not all libraries have a $VER: I've also found that the
- version within this string sometimes contains the version of the
- program calling the library, as opposed to the library version that
- would have been found by reading the LibBase->Version &
- LibBase->Revision fields in struct Library. And even though
- VERSION is system DOS command, my program would have to rely on its
- existance and thats not allways gauranteed. Ya never know what a user
- is going to delete from his/her system. LoadSeg() will give me this
- but it doesnt provide me with a revision number, alas I still search...
- Thanks for your reply...
-
- Norm
-
-
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Norman Baccari normb@gpu.utcc.utoronto.ca Toronto,Ontario Canada
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
-
-